Documentation for class window

Inherits from 	window_object 

Properties declared in window 
	base_slide 
	first_responder 
	has_close_button 
	has_miniaturize_button 
	has_resize_bar 
	is_edited 
	miniwindow 
	miniwindow_image 

Class Methods declared in window 
	new 

Methods declared in window 
	action 
		make_key_window 
		miniaturize 
		open_and_make_key 
		perform_close 
		perform_miniaturize 
	any 
		base_slide 
		first_responder 
		has_close_button 
		has_miniaturize_button 
		has_resize_bar 
		is_edited 
		is_key_window 
		is_main_window 
		make_first_responder(object) 
		make_key_window 
		miniaturize 
		miniwindow 
		miniwindow_image 
		open_and_make_key 
		perform_close 
		perform_miniaturize 
		resize(width, height) 
		set_base_slide(slide) 
		set_has_close_button(boolean) 
		set_has_miniaturize_button(boolean) 
		set_has_resize_bar(boolean) 
		set_is_edited(boolean) 
		set_miniwindow(miniwindow) 
		set_miniwindow_image(image) 
		shape(left, bottom, width, height) 
		window_did_become_key 
		window_did_become_main 
		window_did_deminiaturize 
		window_did_miniaturize 
		window_did_resign_key 
		window_did_resign_main 
		window_did_resize 
	events 
		window_did_become_key 
		window_did_become_main 
		window_did_deminiaturize 
		window_did_miniaturize 
		window_did_resign_key 
		window_did_resign_main 
		window_did_resize 

Class 
#begin_class
window 
The class window is a subclass of the class window_object. 
Windows are the basic object for all drawing on the screen.
A window has a title-bar with a miniaturize button, a close button and a title. Every window has a base-slide. The base-slide is a slide that has the same size as the interior of the window. 
To show an object on the screen you have to put it on the base-slide in a window (or on a slide on the base-slide etc).
#end_class

Properties 

#begin_property
base_slide 
Stores a reference to the slide that is the base-slide of the window. The base-slide is a slide that has the same size as the interior of the window.
#end_property

#begin_property
first_responder 
Stores a reference to the object in the window that is the first responder, i.e. the object that will receive keystrokes, cut, copy and paste commands etc.
#end_property

#begin_property
has_close_button 
Stores a boolean. It is true if the window has a close button. Otherwise it is false.
#end_property

#begin_property
has_miniaturize_button 
Stores a boolean. It is true if the window has a miniaturize button. Otherwise it is false.
#end_property

#begin_property
has_resize_bar 
Stores a boolean. It is true if the window has a resize bar. Otherwise it is false.
#end_property

#begin_property
is_edited 
Stores a boolean. If it is true the cross of the window's close button will be broken. Otherwise it is false. This is the NeXTstep way of telling the user that a document in a window has been edited since it was last saved.
#end_property

#begin_property
miniwindow 
Stores a reference to the miniwindow that represents the window when it is miniaturized. Before the window is miniaturized for the first time there is no miniwindow and the value will be nil.
#end_property

#begin_property
miniwindow_image 
Stores a reference to the image that is used by the picture in the window's miniwindow.
#end_property

Methods 

#begin_method
base_slide 
Returns the slide that is the base-slide of the window.
#end_method

#begin_method
first_responder 
Returns the first_responder property of the window.
#end_method

#begin_method
has_close_button 
Returns the has_close_button property of the window.
#end_method

#begin_method
has_miniaturize_button 
Returns the has_miniaturize_button property of the window.
#end_method

#begin_method
has_resize_bar 
Returns the has_resize_bar property of the window.
#end_method

#begin_method
is_edited 
Returns the is_edited property of the window.
#end_method

#begin_method
is_key_window 
Returns true if the window is the key window, i.e. it has a black title-bar and accepts keyboard input. Otherwise the method returns false.
Also see is_main_window.
#end_method

#begin_method
is_main_window 
Returns true if the window is the main window of the program. Otherwise the method returns false.
Also see is_key_window.
#end_method

#begin_method
make_first_responder(object) 
Makes object the first responder.
Returns self.
Also see first_responder.
#end_method

#begin_method
make_key_window 
Makes the window the key window if it is open.
Returns self.
Also see is_key_window.
#end_method

#begin_method
miniaturize 
Miniaturizes the window and opens the window's miniwindow.
Returns self.
#end_method

#begin_method
miniwindow 
Returns the miniwindow property of the window.
#end_method

#begin_method
miniwindow_image 
Returns the miniwindow_image property of the window.
#end_method

#begin_method
open_and_make_key 
Opens the window and makes it the key window.
Returns self.
Also see open (window_object) and make_key_window.
#end_method

#begin_method
perform_close 
Closes the window by simulating a click in the close button in the title bar.
Returns self.
Also see close.
#end_method

#begin_method
perform_miniaturize 
Miniaturizes the window by simulating a click in the miniturize button in the title bar.
Returns self.
Also see miniaturize.
#end_method

#begin_method
resize(width, height) 
Sets the size of the window.
Returns self.
Also see shape(left, bottom, width, height) and move(x, y) (window_object).
#end_method

#begin_method
set_base_slide(slide) 
Sets the property base_slide to slide. 
Returns self.
#end_method

#begin_method
set_has_close_button(boolean) 
Sets the property has_close_button to boolean. 
Returns self.
#end_method

#begin_method
set_has_miniaturize_button(boolean) 
Sets the property has_miniaturize_button to boolean. 
Returns self.
#end_method

#begin_method
set_has_resize_bar(boolean) 
Sets the property has_resize_bar to boolean. 
Returns self.
#end_method

#begin_method
set_is_edited(boolean) 
Sets the property is_edited to boolean. 
Returns self.
#end_method

#begin_method
set_miniwindow(miniwindow) 
Sets the property miniwindow to miniwindow. 
Returns self.
#end_method

#begin_method
set_miniwindow_image(image) 
Sets the property miniwindow_image to image.
This is equal to 
self:miniwindow:picture:set_image(image)
The difference is that you may set the miniwindow image before the miniwindow is created with this method.
Returns self.
#end_method

#begin_method
shape(left, bottom, width, height) 
Sets the frame of the window in screen coordinates.
Returns self.
Also see resize(width, height) and move(x, y) (window_object).
#end_method

#begin_method
window_did_become_key 
This method does not do anything. The message is sent to the window when the window is made the key window. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_become_main 
This method does not do anything. The message is sent to the window when the window is made the main window. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_deminiaturize 
This method does not do anything. The message is sent to the window when the window is deminiaturized. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_miniaturize 
This method does not do anything. The message is sent to the window when the window is miniaturized. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_resign_key 
This method does not do anything. The message is sent to the window when the window resigns from being the key window. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_resign_main 
This method does not do anything. The message is sent to the window when the window resigns from being the main window. Specialize the method to get the desired behavior. 
Returns self.
#end_method

#begin_method
window_did_resize 
This method does not do anything. The message is sent to the window when the window is resized. Specialize the method to get the desired behavior. 
Returns self.
#end_method

Class Methods 

#begin_class_method
new 
Returns a new window object.
Ex:
{window}:new:open
creates a new window and puts it on the screen.
#end_class_method